package com.example.pest.vo;

import com.example.pest.pojo.XxRoom;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class YuYueDetail extends XxRoom {
    private List<TimeSpan> timeSpanList = new ArrayList<>();
    private List<String> dateList = new ArrayList<>();
    private String dateKey;

    public void pushTimeSpan(long id,String key ,int zw,int use) {
        timeSpanList.add(new TimeSpan(id,key,zw,use));
    }

    public void pushDateKey(String key ) {
        dateList.add(key);
    }

    @Data
    @AllArgsConstructor
    public static class TimeSpan{
        private long id;
        private String key;
        private int zwCount;
        private int useCount;
    }
}
